/// 响应主体内容
class CategoryTopQuoteDetailDto {
  /// 卡种类ID
  final int? cardTypeId;
  /// 卡种类
  final String? cardType;
  /// 卡分类ID
  final int? cardCategoryId;
  /// 卡分类
  final String? cardCategory;
  /// 该卡分类的报价：一美元最高可兑换多少奈拉
  final int? quote;
  /// 卡种类icon地址
  final String? iconUrl;

  CategoryTopQuoteDetailDto({
    this.cardTypeId,
    this.cardType,
    this.cardCategoryId,
    this.cardCategory,
    this.quote,
    this.iconUrl,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (cardTypeId != null) data['cardTypeId'] = cardTypeId;
    if (cardType != null) data['cardType'] = cardType;
    if (cardCategoryId != null) data['cardCategoryId'] = cardCategoryId;
    if (cardCategory != null) data['cardCategory'] = cardCategory;
    if (quote != null) data['quote'] = quote;
    if (iconUrl != null) data['iconUrl'] = iconUrl;
    return data;
  }

  factory CategoryTopQuoteDetailDto.fromJson(Map<String, dynamic> json) {
    return CategoryTopQuoteDetailDto(
      cardTypeId: json['cardTypeId'],
      cardType: json['cardType'],
      cardCategoryId: json['cardCategoryId'],
      cardCategory: json['cardCategory'],
      quote: json['quote'],
      iconUrl: json['iconUrl'],
    );
  }
}